home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _6DDAF8FAFF7445CDA4C781E4116BB57C < prev    next >
Encoding:
Text File  |  2004-06-24  |  822 b   |  34 lines

  1. shader()
  2. {
  3.     cull("ccw")
  4.     pass()
  5.     {
  6.         tmu()
  7.         {
  8.             TexGen("planar")
  9.             TexMod("scale", "const", %terrain_inv_x, 0, 0, "const", %terrain_inv_z, 0, 0)
  10.             texture()
  11.             {
  12.                 Image(%colortexture)
  13.                 addressfunc("clamp", "clamp", "clamp")
  14.             }
  15.         }
  16.         tmu()
  17.         {
  18.             TexGen("world_position")
  19.             UserTexMtx( 2 )
  20.             texture()
  21.             {
  22.                 Usermap(2)
  23.                 addressfunc("clamp", "clamp", "clamp")
  24.                 //filtering("no_filtering")
  25.             }
  26.             ColorOp("blend_factor_alpha", "texture", "current", "current")
  27.         }
  28.         tfactor(1, 1, 1, 1)
  29.         colorgen("tfactor", "none", 0, 0, 0, "user", 0, 0, 0)
  30.  
  31.     }
  32. }
  33.  
  34.